var _ads_layer_result;
function getAdsLayer(cid,url){
	_ads_layer_result = cid;
	layer.open({
	  type: 2,
	  title: false,
	  closeBtn: 0, //不显示关闭按钮
	  //offset: 'r',
	  area: ['1000px', '500px'],
	  content: [url, 'no'], //iframe的url，no代表不显示滚动条
	  btn: ['确定选择', '取消'],
	  yes: function (index, layero) {
		var body = layer.getChildFrame('body', index);
		var _url = body.find('#result').text();
		if(!_url){
			layer.msg("你还没有选择连接")
			return false;
		}
		$(cid).val(_url);	
		layer.close(index);
	  }
	})
}
function  _callbackAdsLayer(url){
	$(_ads_layer_result).val(url);	
}